﻿using IBll.DTO;
using Model;

namespace IBll
{
    public interface IStudentBll
    {
        Task<int> AddAsync(Student t);
        Task<int> UpdateAsync(Student t);
        /// <summary>
        /// 这个间接要求所有表的主键必须是id并且是int
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteAsync(int id);
        Student GetSingle(int id);
        IQueryable<Student> GetAll();
        Task<int> RangeDeleteAsync(string idsting);
        PageResultDTo<Student> GetStudentPage(int index,int size,string? name); 
    }
}
